/* 基础样式 */
.message-board-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.message-board-container h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
}

/* 留言表单样式 */
.message-form {
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background-color: #f9f9f9;
}

/* 留言列表样式 */
.messages-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.message {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background-color: #fff;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.username {
    font-weight: bold;
    color: #3498db;
}

.date {
    color: #95a5a6;
    font-size: 0.9em;
}

.delete-form {
    margin-left: auto;
}

.delete-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
}

.delete-btn:hover {
    background-color: #c0392b;
}

.message-content {
    margin: 15px 0;
    line-height: 1.6;
}

/* 回复样式 */
.replies {
    margin-top: 15px;
    padding-left: 20px;
    border-left: 3px solid #eee;
}

.reply {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 6px;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.reply-content {
    line-height: 1.5;
}

.reply-form {
    margin-top: 10px;
}

/* 按钮样式 */
.submit-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #27ae60;
}

/* 富文本编辑器样式调整 */
.fr-box {
    margin-bottom: 10px;
}

.fr-wrapper {
    border-radius: 4px !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .message-board-container {
        padding: 10px;
    }

    .message-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .delete-form {
        margin-left: 0;
        width: 100%;
    }

    .delete-btn {
        width: 100%;
    }

    .replies {
        padding-left: 10px;
    }
}

/* 确保编辑器容器正确显示 */
.fr-box {
    margin-bottom: 15px;
}

/* 回复表单的特殊样式 */
.reply-form-container {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.reply-form-container .fr-wrapper {
    min-height: 100px;
}